//
//  LBParameterView.m
//  loveBeen
//
//  Created by 韩天助 on 11/20/16.
//  Copyright © 2016 loveBeen. All rights reserved.
//

#import "LBCaptureView.h"

@interface LBCaptureView()
@property (weak, nonatomic) IBOutlet UILabel *keyLabel;
@property (weak, nonatomic) IBOutlet UILabel *valueLabel;

@end

@implementation LBCaptureView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

+ (instancetype)captureView{
    UINib *nib = [UINib nibWithNibName:@"LBCaptureView" bundle:nil];
    
    return [[nib instantiateWithOwner:nil options:nil] lastObject];
}

- (void)setDict:(NSDictionary *)dict{
    _dict = dict;
//    NSLog(@"%@",dict);
//    self.keyLabel.text = dict[@"key"];
//    NSLog(@"%@",self.keyLabel.text);
    self.valueLabel.text = dict[@"value"];
}

@end
